export const disposeStatisticsData = (data) => {
  // Y轴各个供应商名字
  const statisticsNameData_y: string[] = [];
  // 渲染柱图内容
  const statisticsData_y: number[] = [];

  /**
   * 当数据为空时则不往下执行，直接返回
   * */
  if (data?.length) {
    data?.forEach((item: Record<string, any>) => {
      statisticsNameData_y?.push(item?.fullName);
      statisticsData_y?.push(item?.expectAllSum);
    });
  }

  /**
   * 返回处理内容
   * */
  return {
    statisticsNameData_y,
    statisticsData_y,
  };
};
